package com.itlong.cloud.operate.resource;

import com.itlong.cloud.operate.service.IOperateColectionRateService;
import com.itlong.cloud.project.operate.IOperateColectionRateServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <desc>
 *      运营-项目收缴率分析业务处理暴露接口实现类
 * <desc/>
 *
 * @createDate 2017/10/23.
 */
@RestController
public class OperateColectionRateServiceResource implements IOperateColectionRateServiceClient {

    @Autowired
    IOperateColectionRateService iOperateColectionRateService;

    /**
     * <desc>
     *      列表查询
     * </desc>
     *
     * @param year
     * @return
     * @author Jiaqi.X
     */
    @Override
    @PostMapping("/operate/propertyValue/colectionRate/getList")
    public Map<String,Object> getList(@RequestParam(value = "year",required = false) String year, @RequestParam(value = "projectId",required = false) String projectId) {
        return iOperateColectionRateService.getList(year,projectId);
    }
}
